package cc.mrbird.febs.business.domain;

import cc.mrbird.febs.common.converter.TimeConverter;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_b_storefile")
@Excel("商户文件信息表")
@ApiModel(value="商户文件信息表",description="商户文件信息表")
public class StoreFile implements Serializable {

    private static final long serialVersionUID = -1714476694755654924L;

    @TableId(value = "stfi_id", type = IdType.AUTO)
    private Long stfiId;

    @TableId(value = "store_id")
    private Long storeId;

    @NotBlank(message = "{required}")
    @Size(max = 10, message = "{noMoreThan}")
    @ExcelField(value = "文件名称")
    @ApiModelProperty(value = "文件名称")
    private String stfiName;

    @ExcelField(value = "文件地址")
    @ApiModelProperty(value = "文件地址")
    private String stfiUrl;

    @ExcelField(value = "创建时间", writeConverter = TimeConverter.class)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ExcelField(value = "修改时间", writeConverter = TimeConverter.class)
    @ApiModelProperty(value = "修改时间")
    private Date modifyTime;

}